package com.sc.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sc.entity.Summary;
import com.sc.entity.Warehouse;
import com.sc.service.SummaryService;
import com.sc.service.WarehouseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 仓库表 前端控制器
 * </p>
 *
 * @author 许一
 * @since 2023-12-08 11:59:08
 */
@RestController
@RequestMapping("/warehouse")
public class WarehouseController {
    @Resource
    private WarehouseService warehouseService;

    @GetMapping("/getList")
    public List<Warehouse> getList() {
        List<Warehouse> warehouses = warehouseService.list();
        return warehouses;
    }
}
